import { get,post } from "../request";

const order = {
    queryById(orderId){
        return get('/orders/queryById',orderId)
    },
    queryByPage(pageDto){
        return post('/orders/queryByPage',pageDto)
    },
    insertOrder(orders){
        return post('/orders/insertOrder',orders)
    },
    cancelOrder(orderId){
        return get('/orders/cancelOrder',orderId)
    },
    completePayment(orderId){
        return get('/orders/completePayment',orderId)
    },
    cancelPayment(orderId){
        return get('/orders/cancelPayment',orderId)
    },
    completeOrder(orderId){
        return get('/orders/completeOrder',orderId)
    },
    // 管理员 --弃用
    deleteById(orderId){
        return get('/orders/deleteById',orderId)
    },
}

export default order;